package com.bruce.principle.demeter.demo2;

import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by bruce on 2018/10/23 22:47
 */
@Slf4j
public class TeamLeader {

    public void commandCheckNumber() {
        //模仿查询数据库
        List<Course> courses = new ArrayList<>();
        for (int i = 0; i < 20; i++) {
            courses.add(new Course());
        }
        log.info("课程数量是:" + courses.size());
    }


}
